<h1>Add Popular OPML Files</h1>
<ul>
  <li><%= link_to 'Top 100 Feeds', {:controller => 'opml', :action => 'upload_opml_file', :uri => 'http://share.opml.org/opml/top100.opml', :aggregation_id => @aggregation.id }, :method => :post %></li> 
  <li><%= link_to 'Top 100 Podcasts', {:controller => 'opml', :action => 'upload_opml_file', :uri => 'http://share.opml.org/opml/topPodcasts.opml', :aggregation_id => @aggregation.id }, :method => :post %></li>  
</ul>

<div class="service-item">
  <% form_for(:opml, :url => {:controller => 'opml', :action => 'upload_opml_file', :aggregation_id => @aggregation.id}) do |form| %>
    <label for="opml">Enter OPML url:</label><br />
    <%= form.text_field :uri %><br/>
    <%= submit_tag("Add OPML", :disable_with => "Adding Urls" ) %>
  <% end %>
</div>

<div class="service-item">
  <% form_for(:opml, :url => {:controller => 'opml', :action => 'upload_opml_file', :aggregation_id => @aggregation.id}, :html => { :multipart => true }) do |form| %>
    <label for="opml">Upload your OPML file:</label><br />
    <%= form.file_field("uploaded_opml") %><br/>
    <%= submit_tag("Upload OPML File", :disable_with => "Uploading OPML File" ) %>
  <% end %>
</div>